home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
vol6n13.arc
/
PAD.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-04-29
|
15KB
|
212 lines
10 DIM SUMS(17):FOR I=1 TO 10:KEY I,"":NEXT I:CLS:D=330:PRINT "Checking..."
20 FOR I=1 TO 17:READ SUMS(I):NEXT I
30 FOR I=1 TO 17:SUM=0:FOR N=1 TO 80:READ BYTE.%:SUM=SUM+BYTE.%:NEXT N
40 IF SUM<>SUMS(I) THEN PRINT "ERROR BETWEEN LINES",D+100*(I-1),D+100*I:END
50 NEXT I:RESTORE 330:CLS
60 LOCATE 10,15:PRINT" Type the key to turn the pad on and off."
70 LOCATE 11,15:PRINT" (Use another key if there is no response)."
80 DEF SEG = &H40
90 FKEY$=INKEY$:IF FKEY$="" GOTO 90
100 LOCATE 10,15:PRINT SPC(50):LOCATE 11,15:PRINT SPC(50)
110 TAIL=PEEK(26):TAIL=TAIL-2:IF TAIL < 30 THEN TAIL = 60
120 CODE1=PEEK(TAIL):CODE2=PEEK(TAIL+1):CLS:LOCATE 10,12
130 PRINT"An attribute of 30 is recommended on color screens.":LOCATE 11,10
140 INPUT"What is the pad attribute(<cr>=default, monochrome screen)";ATTR
150 IF ATTR = 0 THEN ATTR = 112
160 CLS:OPEN "PAD.COM" AS # 1 LEN = 1 'Open Pad.Com
170 LOCATE 2,30:PRINT" Creating PAD.COM "
180 FIELD #1,1 AS BYTE.$:FOR N = 1 TO 1432
190 READ BYTE.%
200 IF BYTE.% <> -1 THEN GOTO 220
210 LSET BYTE.$=CHR$(ATTR):PUT #1:GOTO 270
220 IF BYTE.% <> -2 THEN GOTO 240
230 LSET BYTE.$=CHR$(CODE1):PUT #1:GOTO 270
240 IF BYTE.% <> -3 THEN GOTO 260
250 LSET BYTE.$=CHR$(CODE2):PUT #1:GOTO 270
260 LSET BYTE.$ = CHR$(BYTE.%):PUT #1
270 NEXT N:CLOSE #1
280 LOCATE 19,15:PRINT SPC(10) " PAD.COM Created. "
290 END
300 DATA 5775, 3823, 6639, 6343, 6480, 7271, 7007, 7275
310 DATA 6215, 7051, 7746, 7272, 7126, 8255, 7965, 7692
320 DATA 6879
330 DATA 233, 249, 4, 67, 111, 112, 121, 114
340 DATA 105, 103, 104, 116, 32, 49, 57, 56
350 DATA 55, 32, 90, 105, 102, 102, 45, 68
360 DATA 97, 118, 105, 115, 32, 80, 117, 98
370 DATA 108, 105, 115, 104, 105, 110, 103, 32
380 DATA 67, 111, 46, 0, 0, 0, 0, 1
390 DATA 0, 0, 1, 0, 1, 16, 83, 65
400 DATA 86, 69, 13, 115, 97, 118, 101, 13
410 DATA 83, 97, 118, 101, 13, 10, 36, 13
420 DATA 10, 80, 65, 68, 46, 84, 88, 84
430 DATA 32, 99, 114, 101, 97, 116, 101, 100
440 DATA 46, 13, 10, 36, 0, 0, 80, 65
450 DATA 68, 46, 84, 88, 84, 0, 0, 0
460 DATA 0, 0, 88, 2, 176, 4, 8, 7
470 DATA 96, 9, 0, 0, 0, 0, 87, 2
480 DATA 0, 0, 0, 0, -1, 0, 0, 0
490 DATA 0, 0, 0, 0, 0, 0, 0, 0
500 DATA 0, 80, 83, 81, 82, 87, 86, 30
510 DATA 6, 156, 46, 255, 30, 133, 1, 187
520 DATA 64, 0, 142, 219, 139, 30, 28, 0
530 DATA 59, 30, 26, 0, 116, 67, 131, 235
540 DATA 2, 129, 251, 30, 0, 115, 6, 187
550 DATA 62, 0, 131, 235, 2, 139, 23, 129
560 DATA 250, -2, -3, 117, 80, 137, 30, 28
570 DATA 0, 46, 247, 22, 92, 1, 46, 131
580 DATA 62, 92, 1, 0, 117, 30, 141, 22
590 DATA 252, 5, 46, 137, 22, 114, 1, 46
600 DATA 129, 6, 114, 1, 184, 11, 141, 6
610 DATA 54, 4, 46, 163, 129, 1, 232, 155
620 DATA 2, 233, 192, 1, 141, 22, 252, 5
630 DATA 46, 137, 22, 114, 1, 46, 129, 6
640 DATA 114, 1, 184, 11, 141, 6, 11, 4
650 DATA 46, 163, 129, 1, 232, 125, 2, 232
660 DATA 171, 1, 233, 159, 1, 46, 247, 6
670 DATA 92, 1, 1, 0, 116, 211, 137, 30
680 DATA 28, 0, 129, 250, 0, 83, 117, 40
690 DATA 30, 14, 31, 46, 139, 30, 118, 1
700 DATA 75, 198, 7, 32, 75, 46, 59, 30
710 DATA 116, 1, 117, 245, 198, 7, 95, 46
720 DATA 139, 22, 116, 1, 46, 137, 22, 102
730 DATA 1, 31, 232, 112, 1, 233, 100, 1
740 DATA 129, 250, 8, 14, 117, 41, 30, 14
750 DATA 31, 46, 139, 30, 102, 1, 46, 59
760 DATA 30, 116, 1, 126, 19, 198, 71, 255
770 DATA 95, 46, 255, 14, 102, 1, 46, 59
780 DATA 30, 118, 1, 116, 3, 198, 7, 32
790 DATA 31, 232, 65, 1, 233, 53, 1, 129
800 DATA 250, 13, 28, 117, 13, 30, 14, 31
810 DATA 232, 74, 1, 31, 232, 46, 1, 233
820 DATA 34, 1, 129, 250, 0, 73, 117, 78
830 DATA 46, 131, 62, 120, 1, 0, 117, 3
840 DATA 233, 17, 1, 46, 139, 30, 120, 1
850 DATA 3, 219, 46, 139, 14, 102, 1, 46
860 DATA 137, 143, 104, 1, 46, 255, 14, 120
870 DATA 1, 131, 235, 2, 46, 139, 143, 104
880 DATA 1, 46, 137, 14, 102, 1, 46, 161
890 DATA 120, 1, 187, 88, 2, 247, 227, 141
900 DATA 22, 252, 5, 3, 194, 46, 163, 116
910 DATA 1, 5, 87, 2, 46, 163, 118, 1
920 DATA 232, 218, 0, 233, 206, 0, 129, 250
930 DATA 0, 81, 117, 78, 46, 131, 62, 120
940 DATA 1, 4, 117, 3, 233, 189, 0, 46
950 DATA 139, 30, 120, 1, 3, 219, 46, 139
960 DATA 14, 102, 1, 46, 137, 143, 104, 1
970 DATA 46, 255, 6, 120, 1, 131, 195, 2
980 DATA 46, 139, 143, 104, 1, 46, 137, 14
990 DATA 102, 1, 46, 161, 120, 1, 187, 88
1000 DATA 2, 247, 227, 141, 22, 252, 5, 3
1010 DATA 194, 46, 163, 116, 1, 5, 87, 2
1020 DATA 46, 163, 118, 1, 232, 134, 0, 235
1030 DATA 123, 144, 129, 250, 0, 59, 117, 36
1040 DATA 46, 138, 38, 125, 1, 254, 196, 128
1050 DATA 252, 16, 124, 2, 180, 0, 46, 136
1060 DATA 38, 125, 1, 46, 128, 38, 124, 1
1070 DATA 240, 46, 8, 38, 124, 1, 232, 92
1080 DATA 0, 235, 81, 144, 129, 250, 0, 60
1090 DATA 117, 37, 46, 138, 38, 126, 1, 128
1100 DATA 196, 16, 128, 252, 120, 114, 2, 180
1110 DATA 0, 46, 136, 38, 126, 1, 46, 128
1120 DATA 38, 124, 1, 15, 46, 8, 38, 124
1130 DATA 1, 232, 49, 0, 235, 38, 144, 30
1140 DATA 14, 31, 46, 139, 30, 102, 1, 46
1150 DATA 59, 30, 118, 1, 125, 18, 136, 23
1160 DATA 46, 255, 6, 102, 1, 67, 46, 59
1170 DATA 30, 118, 1, 116, 3, 198, 7, 95
1180 DATA 31, 232, 9, 0, 7, 31, 94, 95
1190 DATA 90, 89, 91, 88, 207, 80, 46, 255
1200 DATA 54, 116, 1, 46, 143, 6, 114, 1
1210 DATA 141, 6, 54, 4, 46, 163, 129, 1
1220 DATA 232, 185, 0, 88, 195, 46, 139, 62
1230 DATA 118, 1, 131, 239, 40, 46, 57, 62
1240 DATA 102, 1, 125, 46, 46, 139, 30, 102
1250 DATA 1, 139, 195, 46, 43, 6, 116, 1
1260 DATA 61, 39, 0, 116, 17, 124, 5, 45
1270 DATA 40, 0, 235, 244, 198, 7, 32, 46
1280 DATA 255, 6, 102, 1, 235, 222, 198, 7
1290 DATA 32, 198, 71, 1, 95, 46, 255, 6
1300 DATA 102, 1, 195, 30, 82, 14, 31, 190
1310 DATA 2, 0, 46, 139, 22, 131, 1, 236
1320 DATA 168, 1, 117, 251, 236, 168, 1, 116
1330 DATA 251, 38, 138, 37, 71, 78, 131, 254
1340 DATA 0, 116, 4, 136, 39, 235, 232, 67
1350 DATA 136, 39, 67, 90, 31, 195, 30, 81
1360 DATA 82, 14, 31, 138, 39, 190, 2, 0
1370 DATA 46, 139, 22, 131, 1, 236, 168, 1
1380 DATA 117, 251, 236, 168, 1, 116, 251, 38
1390 DATA 136, 37, 141, 14, 252, 5, 129, 193
1400 DATA 184, 11, 46, 57, 14, 114, 1, 117
1410 DATA 5, 138, 103, 1, 235, 5, 46, 138
1420 DATA 38, 124, 1, 71, 78, 117, 214, 67
1430 DATA 141, 14, 252, 5, 129, 193, 184, 11
1440 DATA 46, 57, 14, 114, 1, 117, 1, 67
1450 DATA 90, 89, 31, 195, 187, 0, 176, 142
1460 DATA 195, 46, 139, 62, 127, 1, 46, 3
1470 DATA 62, 122, 1, 46, 139, 30, 114, 1
1480 DATA 185, 15, 0, 186, 40, 0, 46, 255
1490 DATA 22, 129, 1, 74, 117, 248, 46, 3
1500 DATA 62, 122, 1, 226, 238, 195, 6, 30
1510 DATA 85, 80, 83, 81, 128, 252, 10, 116
1520 DATA 3, 233, 53, 1, 139, 218, 138, 15
1530 DATA 30, 14, 31, 143, 6, 50, 1, 82
1540 DATA 143, 6, 52, 1, 187, 128, 0, 136
1550 DATA 15, 139, 236, 128, 62, 47, 1, 1
1560 DATA 117, 60, 139, 94, 4, 137, 30, 48
1570 DATA 1, 198, 6, 47, 1, 0, 80, 81
1580 DATA 87, 6, 14, 7, 141, 62, 252, 5
1590 DATA 185, 184, 11, 176, 32, 243, 170, 141
1600 DATA 62, 252, 5, 176, 49, 185, 5, 0
1610 DATA 198, 5, 95, 136, 133, 87, 2, 254
1620 DATA 192, 129, 199, 88, 2, 226, 241, 7
1630 DATA 95, 89, 88, 235, 13, 144, 139, 94
1640 DATA 4, 59, 30, 48, 1, 116, 3, 233
1650 DATA 207, 0, 186, 128, 0, 180, 10, 156
1660 DATA 255, 30, 43, 1, 156, 252, 14, 7
1670 DATA 141, 62, 54, 1, 139, 239, 184, 3
1680 DATA 0, 190, 130, 0, 187, 129, 0, 51
1690 DATA 201, 138, 15, 128, 249, 0, 126, 120
1700 DATA 128, 249, 4, 127, 115, 243, 166, 117
1710 DATA 9, 227, 2, 235, 5, 128, 61, 13
1720 DATA 116, 10, 131, 197, 5, 139, 253, 72
1730 DATA 117, 215, 235, 92, 180, 9, 141, 22
1740 DATA 68, 1, 156, 255, 30, 43, 1, 141
1750 DATA 46, 68, 1, 180, 60, 141, 22, 94
1760 DATA 1, 185, 0, 0, 156, 255, 30, 43
1770 DATA 1, 185, 75, 0, 139, 216, 141, 22
1780 DATA 252, 5, 180, 64, 81, 185, 40, 0
1790 DATA 156, 255, 30, 43, 1, 82, 141, 22
1800 DATA 68, 1, 185, 2, 0, 180, 64, 156
1810 DATA 255, 30, 43, 1, 90, 131, 194, 40
1820 DATA 89, 226, 223, 180, 62, 156, 255, 30
1830 DATA 43, 1, 180, 9, 141, 22, 71, 1
1840 DATA 156, 255, 30, 43, 1, 157, 235, 7
1850 DATA 189, 125, 0, 157, 131, 197, 5, 255
1860 DATA 54, 50, 1, 7, 139, 62, 52, 1
1870 DATA 131, 199, 2, 139, 245, 176, 0, 164
1880 DATA 128, 124, 255, 13, 116, 4, 254, 192
1890 DATA 235, 245, 139, 62, 52, 1, 71, 38
1900 DATA 136, 5, 89, 91, 88, 93, 31, 7
1910 DATA 207, 89, 91, 88, 93, 31, 7, 46
1920 DATA 255, 46, 43, 1, 187, 64, 0, 142
1930 DATA 219, 141, 22, 252, 5, 46, 137, 22
1940 DATA 116, 1, 46, 137, 22, 102, 1, 46
1950 DATA 137, 22, 114, 1, 139, 202, 129, 193
1960 DATA 87, 2, 46, 137, 14, 118, 1, 185
1970 DATA 5, 0, 187, 0, 0, 46, 137, 151
1980 DATA 104, 1, 129, 194, 88, 2, 131, 195
1990 DATA 2, 226, 242, 184, 0, 0, 142, 216
2000 DATA 161, 36, 0, 46, 163, 133, 1, 161
2010 DATA 38, 0, 46, 163, 135, 1, 199, 6
2020 DATA 36, 0, 137, 1, 140, 14, 38, 0
2030 DATA 161, 132, 0, 46, 163, 43, 1, 161
2040 DATA 134, 0, 46, 163, 45, 1, 199, 6
2050 DATA 132, 0, 174, 4, 140, 14, 134, 0
2060 DATA 180, 15, 205, 16, 128, 236, 40, 208
2070 DATA 228, 46, 136, 38, 122, 1, 46, 199
2080 DATA 6, 131, 1, 186, 3, 168, 4, 117
2090 DATA 14, 46, 199, 6, 127, 1, 0, 128
2100 DATA 46, 199, 6, 131, 1, 218, 3, 186
2110 DATA 252, 5, 129, 194, 104, 16, 205, 39